package com.easy.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;
import com.easy.entity.enums.DateTimePatternEnum;
import com.easy.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 员工表
 */
@Alias("Emp")
public class Emp implements Serializable {


	/**
	 * ID
	 */
	private Integer id;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 姓名
	 */
	private String name;

	/**
	 * 性别, 说明: 1 男, 2 女
	 */
	private Integer gender;

	/**
	 * 图像
	 */
	private String image;

	/**
	 * 职位, 说明: 1 班主任,2 讲师, 3 学工主管, 4 教研主管, 5 咨询师
	 */
	private Integer job;

	/**
	 * 入职时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date entrydate;

	/**
	 * 部门ID
	 */
	private Integer deptId;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;


	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return this.id;
	}

	public void setUsername(String username){
		this.username = username;
	}

	public String getUsername(){
		return this.username;
	}

	public void setPassword(String password){
		this.password = password;
	}

	public String getPassword(){
		return this.password;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return this.name;
	}

	public void setGender(Integer gender){
		this.gender = gender;
	}

	public Integer getGender(){
		return this.gender;
	}

	public void setImage(String image){
		this.image = image;
	}

	public String getImage(){
		return this.image;
	}

	public void setJob(Integer job){
		this.job = job;
	}

	public Integer getJob(){
		return this.job;
	}

	public void setEntrydate(Date entrydate){
		this.entrydate = entrydate;
	}

	public Date getEntrydate(){
		return this.entrydate;
	}

	public void setDeptId(Integer deptId){
		this.deptId = deptId;
	}

	public Integer getDeptId(){
		return this.deptId;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}

	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return this.updateTime;
	}

	@Override
	public String toString() {
		return "Emp{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", gender=" + gender +
				", image='" + image + '\'' +
				", job=" + job +
				", entrydate=" + entrydate +
				", deptId=" + deptId +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				'}';
	}
}